package com.ctbri.gui;

import javax.swing.*;
import javax.swing.border.*;
import javax.swing.plaf.basic.*;

import com.ctbri.util.SwingConsole;

import java.awt.*;

public class Buttons extends JFrame {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JButton jb = new JButton("JButton");
	private BasicArrowButton up = new BasicArrowButton(BasicArrowButton.NORTH),
							down = new BasicArrowButton(BasicArrowButton.SOUTH), 
							right = new BasicArrowButton(BasicArrowButton.EAST),
							left = new BasicArrowButton(BasicArrowButton.WEST);

	public Buttons() {
		setLayout(new FlowLayout());
		add(jb);
		add(new JToggleButton("JToggleButton"));
		add(new JCheckBox("JCheckBox"));
		add(new JRadioButton("JRadioButton"));
		JPanel jp = new JPanel();
		jp.setBorder(new TitledBorder("Directions"));
		jp.add(up);
		jp.add(down);
		jp.add(left);
		jp.add(right);
		add(jp);
	}

	public static void main(String[] args) {
		SwingConsole.run(new Buttons(), 350, 200);
	}
} /// :~
